<script>
export default {
  setup(){
    let count = 0;
    return{
      count
    }
  }
}
</script>

<template>
  <div>
    <h2>setup方法</h2>
    {{ count }}
  </div>
</template>

<style lang="scss" scoped>

</style>